package demo.ClassLoad;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/9/17-09-17-14:33
 * @Description：demo.ClassLoad
 */
public class Servlet_Socket {
    public static void main(String[] args) {
        try {
            ServerSocket serverSocket = new ServerSocket(6677);
            Socket accept = serverSocket.accept();

            Reader reader = new BufferedReader(new InputStreamReader(accept.getInputStream()));

        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
